package ge.tsu.java.project.client;

import ge.tsu.java.project.commons.Contact;

public interface ChatEventListener {

	/**
	 * Called when message is received
	 * 
	 * @param message
	 *            - message data
	 * @param from
	 *            - id of user which sent message
	 **/
	void onMessage(String message, Contact from);

	/**
	 * Called when status of contact changes, it can be determined by
	 * <code>contact.getStatus()</code>
	 **/
	void onContactStatusChanged(Contact contact);

}
